import request from '@/utils/request'

export let getlist = (params) => {
  return request({
    url: "/classify/list",
    method: "get",
    params: params || {},
  })
}

export let addlist = (data) => {
  return request({
    url: "/classify/addList",
    method: "post",
    data: data,
  })
}

export let updatelist = (data) => {
  return request({
    url: "/classify/updateList",
    method: "post",
    data: data,
  })
}

export let deletelist = (id) => {
  return request({
    url: "/classify/delList",
    method: "get",
    params: { id },
  })
}